package business;

import java.util.List;

import vo.Warn;

public interface WarnService {

	long getTotalCount();

	List<Warn> getAllWarns();

	List<Warn> getAllWarns(int start, int pageSize);

	void addWarn(String name);

	void addWarn(Warn warn);

	Warn getById(long id);

	void update(long id);

	void delete(long id);

	List<Warn> getWarnsByUserId(long userId);

	List<Warn> getWarnsByTopicId(long topicId);

}
